import service from '@/utils/request'

export const useMainOrderApi = (id: number) => {
	return service.get('/danhao/mainOrder/' + id)
}

export const useMainOrderSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/danhao/mainOrder', dataForm)
	} else {
		return service.post('/danhao/mainOrder', dataForm)
	}
}
